#! /bin/bash

versions='basic v1 v3'
nts=`seq 4`
nactors='18 19 20 21'
simtimes='5 10 20'
is_thread=0

cd $SYSCPAR_ROOT/tests/event4
make clean $versions

echo Working..
for v in `echo $versions`; do
        log=exp4_$v.out
        for t in `echo $simtimes`; do
                echo '[simtime='$t']' >> $log
                for n in `echo $nactors`; do
                        echo -e '\t[log_nactors='$n']' >> $log
                        for nt in `echo $nts`; do
                                echo -n -e '\t\t[nt='$nt'] ' >> $log
                                env NT=$nt REPORT= ./$v 1 $t $n $n 1 $is_thread >> $log
                        done 
                        echo -e '\n' >> $log
                done 
                echo -e '\n' >> $log
        done 
done
echo Done!
